package com.deyuanyun.pic.insp.service.inspresult.impl;

import com.deyuanyun.pic.common.tool.JXL;
import com.deyuanyun.pic.insp.mapper.InspExternalSupportMapper;
import com.deyuanyun.pic.insp.service.inspresult.InspExternalSupportService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

@Service
public class InspExternalSupportServiceImpl extends BaseServiceImpl  implements InspExternalSupportService {
	@Resource
	private InspExternalSupportMapper inspexternalsupportservice;

	@Override
	public Page<LinkedHashMap<String, Object>> findPage(HashMap param) {
		handlerParam(param);
		initPage();
		return inspexternalsupportservice.findPage(param);
	}

	@Override
	public Page<HashMap<String, Object>> getMain(HashMap<String, Object> map) {
		handlerParam(map);
		initPage();
		Page<HashMap<String,Object>>  data=inspexternalsupportservice.getMain(map);
		handlCeharacteristic(data,map);
		return data ;
	}

	@Override
	public Page<HashMap<String, Object>> getStatistics(HashMap<String, Object> map) {
		handlerParam(map);
		return inspexternalsupportservice.getStatistics(map);
	}

	@Override
	public List queryExport(HashMap<String, Object> map) {
		handlerParam(map);
		List<LinkedHashMap<String,Object>> data= inspexternalsupportservice.queryExport(map);
		return data;
	}


}
